//
//  MapManager.m
//  AppointmentForCar
//
//  Created by TheMacBook on 2016/11/10.
//  Copyright © 2016年 Herron. All rights reserved.
//

#import "MapManager.h"


@interface MapManager () <BMKGeneralDelegate,BMKMapViewDelegate , BMKLocationServiceDelegate >

@end
@implementation MapManager

#define kBaiduMapKey @"9qV88oOwQwsWZrVY1claCzh4QEcEd46u"
static MapManager * manager;
static BMKMapManager * mapManager;
+ (instancetype)shareMapManager
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[MapManager alloc] init];
    });
    return manager;
}
- (instancetype)init
{
    self = [super init];
    if(self)
    {
        mapManager = [[BMKMapManager alloc] init];
        _isStart = [mapManager start:kBaiduMapKey generalDelegate:self];
        NSLog(@"version = %@",BMKGetMapApiVersion());
    }
    return self;
}



@end
